home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM)))) PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- modinfofltr - format and filter the /var/spool/lp/modelinfo.dat file
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_hhhh
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_llll _i_o__t_y_p_e
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_llll _i_o__t_y_p_e _----_vvvv <_v_e_n_d_o_r__n_u_m_b_e_r>
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_llll _i_o__t_y_p_e _----_vvvv <_v_e_n_d_o_r__n_u_m_b_e_r> _----_xxxx <_p_r_i_n_t_e_r__m_o_d_e_l>
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr is used to parse the data found in the file
- /var/spool/lp/modelinfo.dat. (See the _m_o_d_e_l_i_n_f_o(_1_m) man page for
- information about the modelinfo.dat file.) _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr reads input from
- standard in and writes to standard out.
-
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr is used by various script files to present a menu of printer
- choices for the user to select.
-
-
- UUUUSSSSAAAAGGGGEEEE
- ----hhhh Display a help message.
-
-
- ----llll _i_o__t_y_p_e
- Specify the printer IO type to be parsed. Valid choices are:
- CENTRONICS, SERIAL, NETPRINTER, or SCSI. If invoked with just
- the ----llll option _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr will generate a numbered list of the
- printer vendor names that have installed printer drivers that
- support the requested IO type. See the examples below.
-
-
- ----vvvv _v_e_n_d_o_r__n_u_m_b_e_r
- Specify the vendor to use. _v_e_n_d_o_r__n_u_m_b_e_r is the vendor number
- from the numbered list generated when ----llll was used. ----llll is
- required when ----vvvv is used. The output will be a numbered list
- of printer model.
-
-
- ----cccc _p_r_i_n_t_e_r__m_o_d_e_l
- Specify the printer model to use. _p_r_i_n_t_e_r__m_o_d_e_l is the printer
- model from the numbered list generated when ----llll ----vvvv was used.
- The options ----llll and ----vvvv are required when ----cccc is used. The output
- will be a one line entry from the modelinfo.dat file that
- describes the printer in detail.
-
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE::::
- List all vendors that support a centronics interface:
-
- /usr/lib/print/modinfofltr -l CENTRONICS < ~lp/modelinfo.dat
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM)))) PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM))))
-
-
-
- Produces:
-
- 1. GENERIC
- 2. AUTOLOGIC
- 3. EPSON
- 4. GENERIC
- 5. GENICOM
- 6. HP
- 7. LEXMARK
- 8. QMS
-
- List the Lexmark printer models for which there is an available driver.
- The ----vvvv argument (7) comes from the previous menu.
-
- /usr/lib/print/modinfofltr -l CENTRONICS -v 7 < ~lp/modelinfo.dat
-
- Produces:
-
- 1. LEXMARK 4079+ POSTSCRIPT
- 2. LEXMARK OPTRA C POSTSCRIPT
- 3. LEXMARK OPTRA L/LX/LXI
- 4. LEXMARK OPTRA N POSTSCRIPT
- 5. LEXMARK OPTRA PLUS POSTSCRIPT
- 6. LEXMARK OPTRA R/RX
-
- Get the modelinfo.dat entry for the Lexmark Optra N printer:
-
- /usr/lib/print/modinfofltr -l CENTRONICS -v 8 -c 4 < ~lp/modelinfo.dat
-
- Produces:
-
- lexmarkoptran_model%CENTRONICS%Lexmark Optra N PostScript%FACEUP=0
-
- which is then used by various shell script to install the printer driver.
-
- _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr is not intended for general use. To install a printer use
- the Printer Manager tool or the mkcentpr(1M), mknetpr(1M), mkserialpr(1M)
- or mkscsipr(1M) shell scripts.
-
-
-
- FFFFIIIILLLLEEEESSSS
- /usr/lib/print/modinfofltr
- /var/spool/lp/modelinfo.dat
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- modelinfo(1M), mknetpr(1M), mkcentpr(1M), mkserialpr(1M), mkscsipr(1M),
- mkjtpr(1M)
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-